home *** CD-ROM | disk | FTP | other *** search
- public _strltu
- ;∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
- ; Make all lower case letters in string uppercase
- ; In:
- ; EDX -> string
- ; Out:
- ; None
- ;∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
- _strltu:
- push ax
- push edx
- strltuml:
- mov al,[edx]
- or al,al
- jz short strltumld
- cmp al,'a'
- jb short strltumlf0
- cmp al,'z'
- ja short strltumlf0
- sub al,'a'-'A'
- mov [edx],al
- strltumlf0:
- inc edx
- jmp strltuml
- strltumld:
- pop edx
- pop ax
- ret
-
-